home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / VGADOC4B.ZIP / REALTEK.TXT < prev    next >
Text File  |  1995-09-29  |  4KB  |  126 lines

  1.   Realtek RT 3106    -  Upto 1 Mbyte.
  2.  
  3. RTG3105  100pin
  4. RTG3106
  5.  
  6.  
  7.  
  8. 3CEh index 0Ah (R/W):
  9.  
  10. 3CEh index 0Bh (R/W):
  11. bit 0-1  Divide the Video Dot Clock by: 0: 1, 1: 1.5, 2: 2, 3: 4
  12.  
  13. 3CEh index 0Ch (R/W):
  14. bit   2  Always set ??
  15.       4  If set doubles the number of pixels in a "character clock"
  16.            Pixels per character clock:
  17.                                   clear         set
  18.             16color modes           8           16
  19.            256color modes           4            8
  20.          Also there are two clock pulses per pixel.
  21.       5  Clock Select bit 2. Bits 0-1 are in 3C2h/3CCh bits 2-3.
  22.       6  ??
  23.  
  24.  
  25. 3CEh index 0Fh (R/W): Extended Function.
  26. bit   2  Single/Dual bank.
  27.          If set 3D6h is the read bank number and 3D7h is the write bank
  28.          number, if clear 3D7h is used for both read and write operations.
  29.  
  30. 3d4h index 19h (R/W):
  31. bit   0  Interlace enabled if set. If set the display offset in 3d4h index 13h
  32.          is the number for two scanlines, rather than one.
  33.       1  Enable memory beyond 64K (256colors)
  34.       4  Display Start Address bit 16.
  35.       5  Enables display to cross 256K boundary if set
  36.       6  Display Start Address bit 17.
  37.       7  Enables display to cross 512K boundary if set
  38.  
  39. 3d4h index 1Ah:
  40. bit 6-7  Chip version.
  41.            0 = Version 0  (RTG3103 ?)
  42.            1 = Version 1  (RTG31030?/RTG3105)
  43.            2 = Version 2  (RTG3106)
  44.            3 = Version x ??
  45.  
  46. 3d4h index 1Eh:
  47. bit 0-1  Video Ram. If Chip version =0: 0=256k, 1=512k, 2=768k and 3=1MB
  48.                     If chip version >0: 0=256k, 1=512k, 2=1MB and 3=2MB.
  49.       2
  50.     4-6
  51.       7  Must be set to access the extended CRTC registers ????
  52.  
  53. 3D4h index 1Fh (R/W):
  54. bit 0-1  Emulation mode: 0=VGA, 1=EGA, 2=CGA, 3=MDA
  55.     2-5
  56.  
  57. 3D6h (R/W): Bank register
  58. bit 0-3  64k Bank register   (Read bank if 3CEh index Fh bit 2 set)
  59.  
  60. 3D7h (R/W): Bank Register
  61. bit 0-3  64k bank number.    (Write/single bank)
  62.  
  63.  
  64. Test for Realtek Chip:
  65.  
  66. if testinx2(base,$1F,$3F) and tstrg($3D6,$F) and tstrg($3D7,$F) then
  67.   case rdinx(base,$1A) shr 6 of
  68.     0:Realtek RT3103
  69.     1:Realtek RT3105
  70.     2:Realtek RT3106
  71.   end;
  72.  
  73.  
  74.   Video modes:
  75.  
  76.     18h  T     80   30  16  (9x16)
  77.     19h  T     80   43  16  (9x11)
  78.     1Ah  T     80   60  16  (9x8)
  79.     1Bh  T    132   25  16  (9x14)
  80.     1Ch  T    132   30  16  (9x16)
  81.     1Dh  T    132   43  16  (9x11)
  82.     1Eh  T    132   60  16  (9x8)
  83.     1Fh  G    800  600  16  PL4
  84.     20h  G    960  720  16  PL4
  85.     21h  G   1024  768  16  PL4
  86.     22h  G    768 1024  16  PL4
  87.     23h  G   1024  768   4  PL2
  88.     24h  G    512  512 256  P8
  89.     25h  G    640  400 256  P8
  90.     26h  G    640  480 256  P8
  91.     27h  G    800  600 256  P8
  92.     28h  G   1024  768 256  P8
  93.     29h  G   1024 1024 256  P8
  94.     2Ah  G   1280 1024  16  PL4
  95.     38h  G    320  200 64K  P16
  96.     39h  G    512  512 64K  P16
  97.     3Ah  G    640  400 64K  P16
  98.     3Bh  G    640  480 64K  P16
  99.     3Ch  G    800  600 64K  P16
  100.  
  101. ----------105F00------------------
  102. INT 10 - VIDEO - Realtek VGA - RETURN CHIP VERSION
  103.         AX = 5F00h
  104. Return: AH = 00h if successful
  105.         AL = Chip version
  106.                00h  RTG3103 ?
  107.                01h  RTG31030/RTG3105
  108.                02h  RTG3106 ?
  109.                3Fh  Not a Realtek chip
  110. ----------105F01------------------
  111. INT 10 - VIDEO - Realtek VGA - GET RTVGA BIOS STRING
  112.         AX = 5F01h
  113.         ES:DI -> buffer to receive BIOS ID string
  114. Return: AL = 00h if successful
  115.         ES:DI -> buffer with zero terminated BIOS ID string
  116. ----------105F02------------------
  117. INT 10 - VIDEO - Realtek VGA - GET VIDEO MEMORY SIZE
  118.         AX = 5F02h
  119. Return: AH = 00h if successful
  120.         AL = Memory size. 0: 256K, 1: 512K, 2: 768K, 3: 1024K
  121. ----------105F03------------------
  122. INT 10 - VIDEO - Realtek VGA - SET ??
  123.         AX = 5F03h
  124.         BL = 0-3 ??
  125. Return: AH = 00h if successful
  126.